﻿using System;
using System.Net.Http;

namespace Fast.RemoteRequest
{
    /// <summary>
    /// Http请求特性
    /// </summary>
    [SkipScan, AttributeUsage(AttributeTargets.Method)]
    public class HttpMethodBaseAttribute : Attribute
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="url"></param>
        /// <param name="method"></param>
        public HttpMethodBaseAttribute(string url, HttpMethod method)
        {
            Url = url;
            HttpMethod = method;
        }

        /// <summary>
        /// 请求地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// 请求谓词
        /// </summary>
        public HttpMethod HttpMethod { get; set; }
    }
}
